package com.ftg.learn.controller;

import com.ftg.learn.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 布衣
 */
@RestController
public class UserController {

    @Resource
    UserService userService;

    @GetMapping("/getUsername")
    public String getUsername(){
        return userService.getUser();
    }
}
